import 'package:flutter/material.dart';
import 'package:flutter_paint/day_3/page_draw.dart';

///
/// [author]: liMing
/// [Date]: 2021-08-02  12:56
///
class PageCanvasDraw extends StatefulWidget {
  @override
  _PageCanvasDrawState createState() => _PageCanvasDrawState();
}

class _PageCanvasDrawState extends State<PageCanvasDraw> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CustomPaint(
          size: Size(MediaQuery.of(context).size.width,MediaQuery.of(context).size.height),
          painter: PageDraw(),
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
